package com.example.ex2.service;

import com.example.ex2.common.CommonResponse;
import com.example.ex2.domain.Item;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

public interface ItemService {
    public boolean addItemByItem(Item item);
    public boolean deleteItemById(int id);
    public List<Item> selectAllItems();
    public boolean updateItemByItem(Item item);
    public String selectNameByItemId(int id);
}
